package org.yacon;

/**
 * Callback for user input command.
 * Implementation should be specified in pipe attribute of program element.
 *
 * @author Evgeny Vetrov
 *         Date: 09.04.12
 */
public interface CommandHandler {
    /**
     * Callback method for executing user entered command.
     *
     * @param command user input
     * @return string representation of result of executed command
     * @throws Exception if any occurred to be printed as error message
     */
    String execute(String command) throws Exception;
}
